package com.pmcc.cj.repository;

import com.pmcc.cj.entity.CjActivationSale;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by tomas on 2020/10/6.
 */
public interface CjActivationSaleRepository extends JpaRepository<CjActivationSale,String> {
    Page<CjActivationSale> findAll(Specification<CjActivationSale> spec, Pageable var1);
    CjActivationSale findByActivationCodeAndDelFlag(String code,Integer delFlag);
    CjActivationSale findByActivationCodeAndCodeTypeAndUseFlagAndDelFlag(String activationCode,Integer codeType,Integer userFlag,Integer delFlag);
}
